﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DelSpuknow.aspx.cs" Inherits="admin_uknow_DelSpuknow" Theme="Default" %>
<%@ Register Src="~/admin/common/UserControl/MulDate.ascx" TagName="MulDate" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">
        function DeleteConfirmation() {
            if (confirm("确定删除您勾选的记录吗？") == true)
                return true;
            else
                return false;
        }

        function openWin(id) {
            var src = 'Sp_details.aspx?MemberId=' + id;
            var width = "400";
            var height = "400";
            var showScroll = false;
            window.open(src, "", "location=No,status=No,help=No,width=" + width + ",height=" + height + ";scroll:" + showScroll + ";");
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="padding: 20px;">
        <table border="0" width="100%" cellpadding="0" cellspacing="0">
            <tr align="left">
                <td>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ser">
                        <tr>
                            <td style="height: 10px">
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:Label ID="Label1" runat="server" Text="时间:"></asp:Label>
                                        </td>
                                        <td>
                                            <uc1:MulDate ID="MulDate1" runat="server" />
                                        </td>
                                        <%--<td>
                                            <asp:Label ID="Label2" runat="server" Text="注册类型:"></asp:Label>
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlType" runat="server">
                                                <asp:ListItem Text="全部" Value="All" />
                                                <asp:ListItem Text="中文用户" Value="1" />
                                                <asp:ListItem Text="英文用户" Value="0" />
                                            </asp:DropDownList>
                                        </td>--%>
                                        <td>用户名：</td>
                                        <td>
                                            <asp:TextBox ID="name" runat="server"></asp:TextBox></td>
                                        <td>邮箱：</td>
                                        <td><asp:TextBox ID="email" runat="server"></asp:TextBox></td>
                                        <td>
                                            <asp:Button ID="Btn_Query" runat="server" Text="查询" OnClick="Btn_Query_Click" CssClass="btn_search" />
                                        </td>
                                        <td style="width: 5px">
                                        </td>
                                        <td>
                                            <asp:Button ID="Btn_Export" runat="server" Text="导出" CssClass="btn_export" OnClick="Btn_Export_Click" />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" OnClientClick="return DeleteConfirmation();"  CssClass="btn_delete"  />
                                        </td>
                                        <td>
                                            <asp:Label ID="lblMsg" runat="server" Text="asefasdf" ForeColor="Red"></asp:Label>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 100%">
                                <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <asp:GridView ID="GvDelSpukNow" Width="100%" runat="server" AutoGenerateColumns="false"
                                            ShowFooter="false" EmptyDataText="没有符合查询条件的数据！" AllowPaging="True" PageSize="15"
                                            OnRowDataBound="GvDelSpukNow_RowDataBound" 
                                            onpageindexchanging="GvDelSpukNow_PageIndexChanging1">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chkSelect" runat="server" />
                                                    </ItemTemplate>
                                                   <%-- <FooterTemplate>
                                                        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" OnClientClick="return DeleteConfirmation();" />
                                                    </FooterTemplate>--%>
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="MEMBER_ID" HeaderText="ID" SortExpression="MEMBER_ID" />
                                                <asp:BoundField DataField="USERNAME" HeaderText="用户名" SortExpression="USERNAME" />
                                                <asp:BoundField DataField="MOBLIE" HeaderText="手机号" SortExpression="MOBLIE" />
                                                <asp:BoundField DataField="EMAIL" HeaderText="电子邮件" SortExpression="EMAIL" />
                                                <asp:BoundField DataField="Register_TIME" HeaderText="注册时间" SortExpression="Register_TIME" />
                                                <asp:TemplateField HeaderText="管理">
                                                    <HeaderTemplate>
                                                        管理
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                    <a href="javascript:" onclick="openWin('<%# DataBinder.Eval(Container.DataItem, "MEMBER_ID") %>')">详情</a>
                                                        <%--<asp:LinkButton ID="mod" runat="server" OnClick="More_click" OnClientClick="javascript:return openWin('<%# Bind('MEMBER_ID') %>');" Text='<%# Bind("MEMBER_ID") %>' CommandArgument='<%# DataBinder.Eval(Container.DataItem, "MEMBER_ID") %>'>详情</asp:LinkButton>--%>
                                                    </ItemTemplate>      
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>
                                            </Columns>
                                        </asp:GridView>
                                    </ContentTemplate>
                                    <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="Btn_Query" EventName="Click" />
                                    </Triggers>
                                </asp:UpdatePanel>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
